Wait for the Page to Load

Command Prototype

iRet = WebBrowser.WaitPage(hWeb,arrElement,iTimeOut,optionArgs)

Command Description

Wait for the currently loading page to finish loading

Parameter Description
Required Parameter
hWeb--Browser's handle string returned with WebBrowser.Create or WebBrowser.Bind functions
arrElement--When the page is loaded, it determines whether the specified element exists. The element feature is an array. When a specific element appears, the function will return the index of the found element (starting from 1). If none of the elements appears, wait for at least one element to appear or time out to exit; if the parameter is left blank, no element will be evaluated
iTimeOut--The timeout to wait for the page to load. If it expires, it is determined that the page fails to load. The default is 60000 milliseconds (60 seconds)
Optional Parameter
bContinueOnError--Specify whether automation should continue if the activity throws an error. This field only supports Boolean values ​​(True, False). The default is False
iDelayAfter--The delay in milliseconds after the activity is executed. The default is 300 milliseconds
iDelayBefore--The delay in milliseconds before the activity starts any operation. The default is 200 milliseconds
return
iRet--The variable used to save the output of the function call

results matching ""

    No results matching ""